package cnpm02.j2ee.group3.model;


public enum SoldTicketStatus {
	CANCELLED,
	FLIGHTED,
	READY;
	
	/**
	 * Get the name of gender in specific language.
	 * @param language {@link SupportedLanguage}
	 * @return value of gender {@link String}
	 * */
	public String getNameByLanguage(SupportedLanguage lang) {
		switch (lang) {
		case VI:
			switch (this) {
			case CANCELLED:
				return "Hủy";
			case FLIGHTED:
				return "Đã bay";
			case READY:
				return "Sẵn sàng";
			default:
				return "Unknown";//Never occurs
			}
		case EN:
			switch (this) {
			case CANCELLED:
				return "Cancelled";
			case FLIGHTED:
				return "Flighted";
			case READY:
				return "Ready";
			default:
				return "Unknown";//Never occurs
			}
		default:
			return "Unknown";//Never occurs
		}
	}
}